package caiziyou.com.designpattern.decotator;

public class Client {
	public static void main(String[] args) {
		Drink shortBlack = new ShortBlack();
		shortBlack = new Milk(shortBlack);		
		shortBlack = new Milk(shortBlack);
		shortBlack = new Chocolate(shortBlack);
		shortBlack.buy();
		
		Decaf decaf = new Decaf();
		decaf.buy();
		
		Drink longBlack = new LongBlack();
		longBlack = new Milk(longBlack);		
		longBlack.buy();
	}
}
